package com.cal.utms.model.user_maintenance;

import java.util.ArrayList;
import java.util.List;

import com.cal.utms.dto.user_maintenance.MenuScreenDto;
import com.cal.utms.entity.MenuScreen;

public class MenuScreenModel {

	public static List<MenuScreenDto> createListModel(List<MenuScreen> menuScreens) {
		List<MenuScreenDto> menuScreenDtos = new ArrayList<MenuScreenDto>();
		for (MenuScreen menuScreen : menuScreens) {
			MenuScreenDto dto = new MenuScreenDto();
			dto.setDescription(menuScreen.getDescription());
			dto.setId(menuScreen.getId());
			dto.setMenuOrder(menuScreen.getMenuOrder());
			dto.setMenuType(menuScreen.getMenuType());
			dto.setScreenActionConfirm(menuScreen.getScreenActionConfirm());
			dto.setScreenActionReject(menuScreen.getScreenActionReject());
			dto.setScreenActionSave(menuScreen.getScreenActionSave());
			dto.setScreenActionView(menuScreen.getScreenActionView());
			dto.setSuperMenuId(menuScreen.getSuperMenuId());
			menuScreenDtos.add(dto);
		}
		return menuScreenDtos;
	}

}
